<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>辅助物料--文化程度修改</title>
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">
		<script type="text/javascript" charset="UTF-8"
			src="<%=request.getContextPath()%>/js/sorttable.js"></script>
		<script language="JavaScript" charset="UTF-8"
			src="<%=request.getContextPath()%>/js/public.js"></script>
		<script type="text/javascript" charset="UTF-8"
			src="<%=request.getContextPath()%>/js/validate.js"></script>
		<script type="text/javascript">
			function validate()
			{	
				var code = document.getElementById("code");
				var name = document.getElementById("name");
						
				//验证行业代码
				if(!isNotNull(code,'代码')||!f_check_number(code,'代码') || !f_check_stringLength(code, '代码', 12))
					return false ;
						
				//验证行业名称
				if(!(isNotNull(name,'名称')&&f_check_ZhOrNumOrLett(name,'名称')) || !f_check_stringLength(name, '名称', 12))
					return false ;			
			}		
		</script>

	</head>

	<body>
		<div id="info_all" style="width: 300px;">
			<div id="info_top">
				新增辅助物料--文化程度修改
			</div>
			<s:form action="updateCulture.action" theme="simple"
				onsubmit="return validate()">
				<div style="padding: 4px; width: 280px; margin-top: 6px;"
					align="center">
					<table
						style="margin-top: 10px; background: #fbfbfb; color: #403040;"
						align="center">
						<tr>
							<td>
								代码*
							</td>
							<td>
								<s:hidden name="culture.cultureId"></s:hidden>
								<s:textfield name="culture.cultureCode" size="12" id="code"></s:textfield>
							</td>
						</tr>
						<tr>
							<td width="60px">
								名称*
							</td>
							<td>
								<s:textfield name="culture.cultureName" size="12" id="name"></s:textfield>
							</td>
						</tr>
						<tr>
							<td colspan="1">
								<div style="margin: 6px; text-align: right;">
									<input type="submit" value="保存" onFocus="this.blur()"
										onmouseover="this.className='btnover'"
										onmouseout="this.className='btnout'" class="btnsize" />

								</div>
							</td>
							<td colspan="1">
								<div style="margin: 6px; text-align: left;">

									<input type="button" value="返回" onFocus="this.blur()"
										onclick="history.go(-1)"
										onmouseover="this.className='btnover'"
										onmouseout="this.className='btnout'" class="btnsize" />
								</div>
							</td>
						</tr>
					</table>
				</div>
			</s:form>
		</div>
	</body>
</html>